import { reactive, toRefs } from 'vue'
export default function () {
  let obj = reactive({ objX: { c: { c: 1 } }, objY: 1 })
  let { objX, objY } = toRefs(obj)

  let changeObj = () => {
    obj = Object.assign(obj, { objQ: 1 }) //reactive对象添加属性
  }
  return { objX, objY, obj, changeObj }
}
